import static org.junit.Assert.*;

import org.junit.*;

public class testLiczba {
	Liczba tester = null;
	
	@Test
	public void test() throws Exception {
		assertEquals("2147483647",tester.zapis(10));
		System.out.println("@Test");
	}
	
	@Test(expected = Exception.class)
	public void expectedTest() throws Exception {
		assertEquals("666",tester.zapis(-1));
		System.out.println("@Expected");
	}
	
	@Test(timeout=1)
	public void timeoutTest() throws Exception {
		assertEquals("C87E66B7",tester.zapis(15));
		System.out.println("@Test(timeout=1)");
	}
	
	@Before
	public void before() throws Exception{
		System.out.println("started...");
		tester = new Liczba("C87E66B7",15);
	}
	
	@After
	public void after() {
		tester = null;
		System.out.println("...ended");
	}
	
	@Ignore
	@Test
	public void ignoreTest() throws Exception {
		assertEquals("555",tester.zapis(15));
		System.out.println("@Ignore");
	}
	
	@Test
	public void newTest1() throws Exception {
		assertTrue(tester.zapis(15)!="0");
		System.out.println("new test1");
	}
	
	@Test
	public void newTest2() throws Exception {
		assertTrue(tester.data>1);
		System.out.println("new test2");
	}
	
}


